import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextInt()) {
            int i = 0, j = 0, k = 0;
            int line = in.nextInt();
            //上半部分
            for ( i = 0; i < line; i++) {
                for (j = 0+i; j < line; j++) {
                    System.out.print(" ");
                }

                for ( k = 0; k <=i; k++) {
                    System.out.print("*" + " ");
                }
                System.out.println();
            }

            //下半部分

            for (i = 0; i <= line; i++) {
                for (j = 0; j < i; j++) {
                    System.out.print(" ");
                }
                for (k = 0 + i; k <= line; k++) {
                    System.out.print("*" + " ");
                }
                System.out.println();
            }
        }
    }
    public static void main5(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        if (a >= 10)
            System.out.println("Danger++");
        else if (a <= 9 && a >= 4)
            System.out.println("Danger");
        else if (a <= 3 && a >= 0)
            System.out.println("Good");
    }
    public static void main4(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()){
            int a = in.nextInt();
            int i = 0,j = 0;
            for (i = 1; i <= a; i++)
            {
                for (j = 1; j <= i; j++)
                {
                    System.out.print(j + " ");
                }
                System.out.println();
            }
        }
    }
    public static void main3(String[] args) {
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        int count = 0;
        int j = 0;
        for (int i = 1; i < num; i++) {
            for ( j = 2; j < i; j++) {
                if(i % j == 0){
                    count++;
                    break;
                }
            }
            if(i == j){
                System.out.print(i + " ");
            }
        }
        System.out.println();
        System.out.println(++count);
    }
    public static void main2(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()){
            String str = "admin";
            String a = in.nextLine();
            String b = in.nextLine();
            if(str.equals(a) && str.equals(b)){
                System.out.println("Login Success!");
            } else {
                System.out.println("Login Fail!");
            }
        }
    }
    public static void main1(String[] args) {
        int b = 0;
        for (int a = 1; a <= 2019; a++)
        {
            if ((a / 100) % 10 == 9 || (a / 10) % 10 == 9 || a % 10 == 9)
            {
                b++;
            }
        }
        System.out.println(b);
    }
}